package com.example.customer.service.impl;

import com.example.customer.mapper.policyholderMapper;
import com.example.customer.service.policyholderService;
import entity.policyholders_info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class policyholderServiceimpl implements policyholderService {

    @Autowired
    private policyholderMapper policyholderMapper;


    @Override
    public int addPolicyholdersInfo(policyholders_info p) {
        return this.policyholderMapper.addPolicyholdersInfo(p);
    }

    @Override
    public int upPolicyholdersInfo(policyholders_info p) {
        return this.policyholderMapper.upPolicyholdersInfo(p);
    }

    @Override
    public policyholders_info getPolicyholdersInfo(int id) {
        return this.policyholderMapper.getPolicyholdersInfo(id);
    }

    @Override
    public int delPolicyholdersInfo(int id) {
        return this.policyholderMapper.delPolicyholdersInfo(id);
    }
}
